package com.c.ctgproject.utils

import android.app.Activity
import android.view.View


class StatusColor {
    fun setAndroidNativeLightStatusBar(
        activity: Activity,
        dark: Boolean
    ) {
        val decor: View = activity.window.decorView
        if (dark) {
            decor.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR)
        } else {
            decor.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View.SYSTEM_UI_FLAG_LAYOUT_STABLE)
        }
    }
}